<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>兰州工业学院大学生创新创业信息平台</title>
<link rel="shortcut icon" type="image/x-icon" href="resources/favicon.ico" media="screen" />
<link rel="stylesheet" href="resources/admin/css/style.css" />
<link rel="stylesheet" href="resources/admin/Extjs4.2.1/resources/css/ext-all-neptune.css" />
<script type="text/javascript" src="resources/admin/Extjs4.2.1/ext-all.js"></script>
<script type="text/javascript" src="resources/admin/Extjs4.2.1/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="system/override/myoverride.js"></script>
<script type="text/javascript" src="system/widget/FsdVTypes.js"></script>
<script type="text/javascript">
	Ext.onReady(function() {
		Ext.Ajax.addInterceptor('system.interceptor.ExceptionInterceptor');
		
		var oper = Ext.create('system.admin.js.initOper');
		
	    var jmm = Ext.create('system.widget.FsdTextField',{
	    	fieldLabel: '旧密码',
	    	labelAlign:'right',
	    	labelWidth:70,
	        width : 340,
	    	name: 'oldpwd',	   
			inputType : 'password',
	    	maxLength: 20,
	    	allowBlank: false
	    });
	   
	    var xmm1 = Ext.create('system.widget.FsdTextField',{
	    	fieldLabel: '新密码',
	    	labelAlign:'right',
	    	labelWidth:70,
	        width : 340,
	    	name: 'newpwd1',
			inputType : 'password',
	    	maxLength: 100,
	    	regex: /^(?!\d+$)(?![A-Za-z]+$)[a-zA-Z0-9]{8,}$/i,
	    	regexText: '密码必须同时包含字母和数字,且最少有8位',
	    	allowBlank: false
	    });
	   
	    var xmm2 = Ext.create('system.widget.FsdTextField',{
	    	fieldLabel: '确认密码',
	    	labelAlign:'right',
	    	labelWidth:70,
	        width : 340,
	    	name: 'newpwd2',
			vtype : 'password',
			vtypeField : xmm1,
			inputType : 'password',
	    	maxLength: 20,
	    	allowBlank: false
	    });

		var tipLabel = Ext.create('Ext.form.Label',{
	    	text: '注：${msg}，请先修改密码后再使用本系统！密码必须同时包含字母和数字,且最少有8位',
			padding : '20 20 0 0',
	    	style:{color:'red'}
	    });
	    
	    var form = Ext.create('Ext.form.Panel',{  
			xtype : 'form',
			defaultType : 'textfield',
			header : false,// 是否显示标题栏
			border : 0,
			padding : '20 0 0 20',
			items : [jmm, xmm1, xmm2, tipLabel]
	    });
		
		/**
		 * 总布局窗口
		 */
		var win = Ext.create('Ext.window.Window', {
			title : "密码安全策略 - 修改密码",
			renderTo : Ext.getBody(),
			width:400,
	        height:240,
	        bodyStyle : "background-color:#ffffff;",// 设置背景颜色 白色
	        plain : true,
			modal : true,
			titleCollapse : true,
			maximizable : false,
			draggable : false,
			closable : false,
			resizable : false,
			items :[form],
	        buttons : [{
	        	name : 'btnsave',
			    text : '保存',
			    iconCls : 'acceptIcon',
			    handler : function() {
					oper.pwdEditFormSubmit(form);
			    }
		    }]
		});
		win.show();
	});
</script>

</head>
<body>
	
</body>
</html>